.class Lcom/waiqin365/lightapp/product/a/p;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/view/View$OnFocusChangeListener;


# instance fields
.field final synthetic a:Lcom/waiqin365/lightapp/product/a/w;

.field final synthetic b:Lcom/waiqin365/lightapp/product/a/k;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightapp/product/a/k;Lcom/waiqin365/lightapp/product/a/w;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/product/a/p;->b:Lcom/waiqin365/lightapp/product/a/k;

    iput-object p2, p0, Lcom/waiqin365/lightapp/product/a/p;->a:Lcom/waiqin365/lightapp/product/a/w;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onFocusChange(Landroid/view/View;Z)V
    .locals 8

    if-eqz p2, :cond_0

    new-instance v0, Lcom/waiqin365/lightapp/product/a/q;

    invoke-static {}, Lcom/waiqin365/lightapp/product/e/b;->g()D

    move-result-wide v2

    iget-object v1, p0, Lcom/waiqin365/lightapp/product/a/p;->a:Lcom/waiqin365/lightapp/product/a/w;

    iget-object v1, v1, Lcom/waiqin365/lightapp/product/a/w;->h:Lcom/waiqin365/lightapp/product/view/CountView;

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/product/view/CountView;->a()Landroid/widget/EditText;

    move-result-object v4

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v5, p0, Lcom/waiqin365/lightapp/product/a/p;->b:Lcom/waiqin365/lightapp/product/a/k;

    invoke-static {v5}, Lcom/waiqin365/lightapp/product/a/k;->a(Lcom/waiqin365/lightapp/product/a/k;)Landroid/content/Context;

    move-result-object v5

    const v6, 0x7f0805c6

    invoke-virtual {v5, v6}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v1, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-static {}, Lcom/waiqin365/lightapp/product/e/b;->g()D

    move-result-wide v6

    invoke-virtual {v1, v6, v7}, Ljava/lang/StringBuilder;->append(D)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    move-object v1, p0

    invoke-direct/range {v0 .. v5}, Lcom/waiqin365/lightapp/product/a/q;-><init>(Lcom/waiqin365/lightapp/product/a/p;DLandroid/widget/EditText;Ljava/lang/String;)V

    check-cast p1, Landroid/widget/EditText;

    invoke-virtual {p1, v0}, Landroid/widget/EditText;->addTextChangedListener(Landroid/text/TextWatcher;)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/product/a/p;->b:Lcom/waiqin365/lightapp/product/a/k;

    invoke-static {v1}, Lcom/waiqin365/lightapp/product/a/k;->b(Lcom/waiqin365/lightapp/product/a/k;)Ljava/util/List;

    move-result-object v1

    invoke-interface {v1, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    :goto_0
    return-void

    :cond_0
    check-cast p1, Landroid/widget/EditText;

    iget-object v0, p0, Lcom/waiqin365/lightapp/product/a/p;->b:Lcom/waiqin365/lightapp/product/a/k;

    invoke-static {v0}, Lcom/waiqin365/lightapp/product/a/k;->b(Lcom/waiqin365/lightapp/product/a/k;)Ljava/util/List;

    move-result-object v0

    const/4 v1, 0x0

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/text/TextWatcher;

    invoke-virtual {p1, v0}, Landroid/widget/EditText;->removeTextChangedListener(Landroid/text/TextWatcher;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/product/a/p;->b:Lcom/waiqin365/lightapp/product/a/k;

    invoke-static {v0}, Lcom/waiqin365/lightapp/product/a/k;->b(Lcom/waiqin365/lightapp/product/a/k;)Ljava/util/List;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/List;->clear()V

    goto :goto_0
.end method
